
package com.insigma.business.qrcode.pay.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.insigma.business.qrcode.common.dto.BaseSearchRequest;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


@Getter
@Setter
public class MerchantOrderSearchRequest extends BaseSearchRequest {

    private static final long  serialVersionUID = 1L;


    private String id;


    private String merchantId;


    private String merchantName;

    private String merchantType;

    private String soldierId;

    private String soldierName;

    private String discountId;


    private String discountType;


    private BigDecimal productDiscount;


    private String productDiscountName;


    private String productName;


    private BigDecimal amount;


    private BigDecimal discountAmount;


    private BigDecimal payAmount;


    private Boolean isDeleted;


    private String creatorType;


    private String creatorId;


    private Date createDatetime;


    private String modifierType;


    private String modifierId;


    private Date modifyDatetime;


    private Boolean isComment;
    private Boolean isConfirm;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public MerchantOrderSearchRequest(){
        super();
    }

    public MerchantOrderSearchRequest(int pageNo, int pageSize) {
        super(pageNo, pageSize);
    }

    public MerchantOrderSearchRequest(int pageNo, int pageSize, String sortKeyValueJoint) {
        super(pageNo, pageSize, sortKeyValueJoint);
    }

}
